﻿using RimWorld;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Verse;

namespace Miao
{
    public class IncidentWorker_EternalNight: IncidentWorker_MakeGameCondition
    {
        private const int EnsureMinDurationTicks = 5000;
        protected override bool CanFireNowSub(IncidentParms parms)
        {
            if (!base.CanFireNowSub(parms))
            {
                return false;
            }
            List<Map> maps = Find.Maps;
            for (int i = 0; i < maps.Count; i++)
            {
                if (maps[i].IsPlayerHome)
                {
                    return true;
                }
            }
            return false;
        }
    }
}
